<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
    <title>Edit record &middot; Kursadarbs</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
<link href="/j2kursad/resources/css/bootstrap.css" rel="stylesheet">
<link href="/j2kursad/resources/css/bootstrap-responsive.css" rel="stylesheet">
  </head>
<body>
 <div class="container">
 <div class="page-header">
  <h1>Kursadarbs</h1>
</div>

<c:url var="saveUrl" value="/karlis/record/edit?id=${warehouseAttribute.id}" />
<form:form modelAttribute="warehouseAttribute" method="POST" action="${saveUrl}">
<fieldset>
<legend>Edit record</legend>
  <p>
   <form:label path="id">Id:</form:label>
   <form:input path="id" disabled="true"/> 
  </p>
   <form:label path="name">First Name:</form:label>
   <form:input path="name"/>
   <p>
   <form:label path="address">Last Name</form:label>
   <form:input path="address"/>
	</p>
	<p>
   <form:label path="manager">Money</form:label>
   <form:input path="manager"/>
  </p>
 <div class="btn-group">
		<button class="btn" type="submit" value="Save" >Save</button>
 		<button class="btn" type="button" name="cancel" value="Cancel" onClick="window.location='http://localhost:8081/j2kursad/karlis/record/list';">Cancel</button>
 </div>
</fieldset>
</form:form>
 </div>
</body>
</html>